import java.awt.event.*;
import javax.swing.*; 
import java.awt.*;


public class SuperTicTacToeController implements MouseListener
{
	private SuperTicTacToeGame game; 
	
	public SuperTicTacToeController()
	{
		game = new SuperTicTacToeGame(this);
		GUI_Board board = new GUI_Board(game.getBoard(), this); 
		
	}

	@Override
	public void mouseClicked(MouseEvent e) 
	{		
		System.out.println(e.getSource());
//		GUI_SubGridPanel source = (GUI_SubGridPanel)(e.getSource()); 
//		
//		int x = e.getX(); 
//		int y = e.getY(); 
//		
//		x -= source.getLineWidth() * (x/source.getCellWidth()); 
//		y -= source.getLineWidth() * (y/source.getCellHeight());
//		
//		int row = x/source.getCellWidth();
//		int col = y/source.getCellHeight(); 
//		
//		GridLocation loc = new GridLocation(source.getGrid().getMainRow(), source.getGrid().getMainCol(), row, col);
//		//placePiece(new GamePiece(Color.BLUE, loc), loc); 
//		source.draw(source.getGraphics());
	}


	@Override
	public void mouseEntered(MouseEvent e) 
	{
		// TODO Auto-generated method stub
		
	}


	@Override
	public void mouseExited(MouseEvent e) 
	{
		// TODO Auto-generated method stub
		
	}


	@Override
	public void mousePressed(MouseEvent e) 
	{
		// TODO Auto-generated method stub
		
	}


	@Override
	public void mouseReleased(MouseEvent e) 
	{
		// TODO Auto-generated method stub
		
	}

}
